#pragma once
#include "Renderer.h"
#include "RendererAPI.h"
namespace Orange {
	class RendererCommand
	{
	public:
		
		inline static void Init() {
			s_API->Init();
		};
		inline static void SetViewport(uint32_t x, uint32_t y, uint32_t width, uint32_t height) {
			s_API->SetViewport(x, y, width, height);
		};
		
		inline static void SetClearColor(const glm::vec4& color) {
			s_API->SetClearColor(color);
		};
		 inline static void Clear() {
			s_API->Clear();
		};

		 inline static void DrawIndexs(const Ref<VertexArray>& vertexArray, uint32_t indexCount = 0) {
			 s_API->DrawIndexs(vertexArray, indexCount);
		 };

	private:
		static RendererAPI* s_API;
	};
}